home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
FEOF.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
927b
|
42 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_FEOF( nHandle ) --> lEOFStatus
PARAMETERS:
nHandle : handle of previously opened file
SHORT:
Check for end of file reached.
DESCRIPTION:
_FEOF() is used in conjunction with _ReadLine() to test for End-Of-File. It
returns TRUE when the file pointer is at EOF.
NOTE:
EXAMPLE:
#include "fileio.ch"
handle = fopen('INPUT.TXT,FO_READ)
while !_FEOF(handle)
This_Line = _ReadLine(handle)
? This_Line
end
Result: Each line of the text file is read into the This_Line variable
and displayed until all lines have been read and _FEOF() then returns TRUE,
exiting the loop.
******************************************************************************/